package cn.rkylin.oms.goods.domain;

import cn.rkylin.oms.common.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 系统商品实体，对应oms_goods表
 *
 * @author wangxing
 * @version 1.0.0
 * @created 2017-7-5
 */
public class Goods extends BaseEntity {
    /**
     * 序列化id
     */
    private static final long serialVersionUID = 2311442258392774878L;

    /**
     * 商品id
     */
    private String goodsId;
    /**
     * 商品商家编码
     */
    private String goodsCode;
    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * 企业id
     */
    private String entId;
    /**
     * 商品分类id
     */
    private String catgId;
    /**
     * 商品分类名称
     */
    private String catgName;
    /**
     * 商品描述
     */
    private String remark;
    /**
     * 删除标记
     */
    private String deleted;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private Integer validityDay;
    private Integer validityWarningDay;
    private String isBatch;
    private String isValidity;
    /**
     * 序列号管理开关.
     */
    private String isSn;

    public String getIsSn() {
        return isSn;
    }

    public void setIsSn(String isSn) {
        this.isSn = isSn;
    }

    public Integer getValidityDay() {
        return validityDay;
    }

    public void setValidityDay(Integer validityDay) {
        this.validityDay = validityDay;
    }

    public Integer getValidityWarningDay() {
        return validityWarningDay;
    }

    public void setValidityWarningDay(Integer validityWarningDay) {
        this.validityWarningDay = validityWarningDay;
    }

    public String getIsBatch() {
        return isBatch;
    }

    public void setIsBatch(String isBatch) {
        this.isBatch = isBatch;
    }

    public String getIsValidity() {
        return isValidity;
    }

    public void setIsValidity(String isValidity) {
        this.isValidity = isValidity;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId == null ? null : goodsId.trim();
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode == null ? null : goodsCode.trim();
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public String getEntId() {
        return entId;
    }

    public void setEntId(String entId) {
        this.entId = entId == null ? null : entId.trim();
    }

    public String getCatgId() {
        return catgId;
    }

    public void setCatgId(String catgId) {
        this.catgId = catgId == null ? null : catgId.trim();
    }

    public String getCatgName() {
        return catgName;
    }

    public void setCatgName(String catgName) {
        this.catgName = catgName == null ? null : catgName.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted == null ? null : deleted.trim();
    }
}